<extend name="Layout:layout_list" />
<block name="body_content_block">
    <table id="main_grid" class="easyui-datagrid" data-url="{:AddonU('SMS/get_strategycall_sms_list_json')}"></table>
    <div id="tb" style="padding:2px 5px;">
        <div style="margin-bottom: 5px; border-bottom:solid 1px #dddddd;">
            <if condition="equal_permission_name('新增策略外呼短信',$loginData['userName'])">
                <a href="{:AddonU('SMS/strategycall_sms_edit')}" class="easyui-linkbutton lnk_grid_add" iconCls="icon-add" plain="true">新增</a>
            </if>
            <a href="{:AddonU('SMS/strategycall_sms_edit','id=varid')}" class="easyui-linkbutton lnk_grid_edit" iconCls="icon-edit" plain="true">编辑</a>
            <a href="{:AddonU('SMS/call_sms_delete','tag=strategy&id=varid')}" class="easyui-linkbutton lnk_grid_remove" iconCls="icon-remove" plain="true" data-prompt-value="zhan123">删除</a>
            <a href="#" class="easyui-linkbutton lnk_grid_search" iconCls="icon-search" plain="true">搜索</a>
        </div>
    </div>
</block>
<block name="body_after_block">
    <script type="text/javascript">
        // 页面初始化
        var curd_grid = CurdGrid.newInstance();
        curd_grid.config({
            title: '策略外呼短信管理',
            toolbar: '#tb',
            columns: [[
                    {field: 'ck', checkbox: true},
                    {title: "租户ID", field: "siteIDText", sortable: true},
                    {title: "服务器名称", field: "serverName", sortable: true},
                    {title: "策略名称", field: "taskStrategyName", sortable: true},
                    {title: "启用策略外呼时长", field: "taskStrategyDurationEnableText", sortable: true},
                    {title: "策略外呼时长(>=秒)", field: "taskStrategyDuration", sortable: true},
                    {title: "启用分机按键", field: "seatdtmfEnableText", sortable: true},
                    {title: "分机按键", field: "seatdtmf", sortable: true},
                    {title: "短信内容", field: "message", sortable: true},
                    {title: "短信签名", field: "sign", sortable: true},
                    {title: "状态", field: "stateText", sortable: true},
                    {title: "创建时间", field: "createdTime", sortable: true},
                    {title: "编号", field: "id", hidden: true},
                ]],
        });
        curd_grid.init();
    </script>
</block>